From: Ray Strode Date: Wed, 26 Jun 2013 14:52:02 +0000 (-0400) Subject: loginDialog: don't show Not Listed? button before user list X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4008 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=74ad6abfc205977dd2798d06e9f1a5072cda7b42;p=gnome-shell.git loginDialog: don't show Not Listed? button before user list Right now, there's a weird flicker at start up where the Not Listed? button shows up before the user list, which looks pretty bad if you're watching for it. This commit fixes that problem by hiding the Not Listed button initially and showing it at the appropriate time. https://bugzilla.gnome.org/show_bug.cgi?id=703132 --- diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js index af5103a27..6b0000710 100644 --- a/js/gdm/loginDialog.js +++ b/js/gdm/loginDialog.js @@ -621,6 +621,7 @@ const LoginDialog = new Lang.Class({ x_fill: true }); this._notListedButton.connect('clicked', Lang.bind(this, this._hideUserListAndLogIn)); + this._notListedButton.hide(); this._userSelectionBox.add(this._notListedButton, { expand: false, @@ -1153,6 +1154,7 @@ const LoginDialog = new Lang.Class({ _showUserList: function() { this._hidePrompt(); this._setUserListExpanded(true); + this._notListedButton.show(); this._userList.actor.grab_key_focus(); },